package com.Model.search;

import java.util.ArrayList;
import java.util.Collections;

import com.sql.DAO;
import com.Model.Pojo.MoneyList;

public class Search {
	
	public ArrayList<MoneyList> getVal(String name){
		DAO dao = new DAO();
		String sql = "select * from moneylist where name = '" + name + "'";
		System.out.println(sql);
		ArrayList<MoneyList> list;
		list = dao.chaxunMoneyList(sql);
		Collections.reverse(list);
		return list;
	}

}
